<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>TiledLighting - Three.js Docs</title>
	<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
	<script src="../scripts/highlight.min.js"></script>
	<link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
	<link type="text/css" rel="stylesheet" href="../styles/page.css">
</head>
<body>
		<p class="inheritance" translate="no"><a href="Lighting.html">Lighting</a> → </p>
	<h1 translate="no">TiledLighting</h1>
		<section>
			<header>
				<div class="class-description"><p>A custom lighting implementation based on Tiled-Lighting that overwrites the default
implementation in <a href="WebGPURenderer.html">WebGPURenderer</a>.</p></div>
				<h2>Code Example</h2>
				<div translate="no"><pre><code class="language-js">const lighting = new TiledLighting();
renderer.lighting = lighting; // set lighting system
</code></pre></div>
			</header>
			<article>
				<h2 class="subsection-title">Import</h2>
				<p><span translate="no">TiledLighting</span> is an addon, and must be imported explicitly, see <a href="https://threejs.org/manual/#en/installation" target="_blank" rel="noopener">Installation#Addons</a>.</p>
				<pre><code class="language-js">import { TiledLighting } from 'three/addons/lighting/TiledLighting.js';</code></pre>
				<div class="container-overview">
					<h2>Constructor</h2>
					<h3 class="name name-method" id="TiledLighting" translate="no">new <a href="#TiledLighting">TiledLighting</a><span class="signature">()</span> </h3>
					<div class="method">
						<div class="description">
							<p>Constructs a new lighting system.</p>
						</div>
					</div>
				</div>
				<h2 class="subsection-title">Classes</h2>
				<dl>
					<dt><a href="TiledLighting.html">TiledLighting</a></dt>
					<dd></dd>
				</dl>
				<h2 class="subsection-title">Methods</h2>
					<h3 class="name name-method" id="createNode" translate="no">.<a href="#createNode">createNode</a><span class="signature">( lights : <span class="param-type">Array.&lt;<a href="Light.html">Light</a>></span> )</span><span class="type-signature"> : <a href="TiledLightsNode.html">TiledLightsNode</a></span> </h3>
					<div class="method">
						<div class="description">
							<p>Creates a new tiled lights node for the given array of lights.</p>
<p>This method is called internally by the renderer and must be overwritten by
all custom lighting implementations.</p>
						</div>
						<table class="params">
							<tbody>
								<tr>
									<td class="name">
										<strong>lights</strong>
									</td>
									<td class="description last">
										<p>The render object.</p>
									</td>
								</tr>
							</tbody>
						</table>
						<dl class="details">
							<dt class="tag-overrides"><strong>Overrides:</strong> <a href="Lighting.html#createNode">Lighting#createNode</a></dt>
						</dl>
						<dl class="details">
							<dt class="tag-returns"><strong>Returns:</strong> The tiled lights node.</dt>
						</dl>
					</div>
				<h2 class="subsection-title">Source</h2>
				<p>
					<a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/lighting/TiledLighting.js" translate="no" target="_blank" rel="noopener">examples/jsm/lighting/TiledLighting.js</a>
				</p>
			</article>
		</section>
<script src="../scripts/linenumber.js"></script>
<script src="../scripts/page.js"></script>
</body>
</html>